package com.arcaneshift.model.util;

public enum ElementType {

	FIRE, WATER, EARTH, WIND;
	
	public static ElementType parse(String elementType) {
		for (ElementType type : values()) {
			if (type.equals(elementType)) {
				return type;
			}
		}
		return null;
	}
	
	public boolean equals(String elementType) {
		return this.toString().equalsIgnoreCase(elementType);
	}
}
